package com.hongxun.modules.api.service.impl;

import java.util.UUID;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.hongxun.modules.api.dao.BCrossQuantitiesDao;
import com.hongxun.modules.api.entity.BCrossQuantitiesEntity;
import com.hongxun.modules.api.service.BCrossQuantitiesService;



@Service("bCrossQuantitiesService")
public class BCrossQuantitiesServiceImpl implements BCrossQuantitiesService {
	@Autowired
	private BCrossQuantitiesDao bCrossQuantitiesDao;
	
	@Override
	public BCrossQuantitiesEntity queryObject(String guid){
		return bCrossQuantitiesDao.queryObject(guid);
	}
	
	@Override
	public List<BCrossQuantitiesEntity> queryList(Map<String, Object> map){
		return bCrossQuantitiesDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return bCrossQuantitiesDao.queryTotal(map);
	}
	
	@Override
	public void save(BCrossQuantitiesEntity bCrossQuantities){
		bCrossQuantities.setGuid(UUID.randomUUID().toString());
		bCrossQuantitiesDao.save(bCrossQuantities);
	}
	
	@Override
	public void update(BCrossQuantitiesEntity bCrossQuantities){
		bCrossQuantitiesDao.update(bCrossQuantities);
	}
	
	@Override
	public void delete(String guid){
		bCrossQuantitiesDao.delete(guid);
	}
	
	@Override
	public void deleteBatch(String[] guids){
		bCrossQuantitiesDao.deleteBatch(guids);
	}
	
}
